package com.lsw.jgyf.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/7/16 0016.
 */

public class PhoneDetailsModel implements Serializable {

    /**
     * id : 1
     * store_id : 0
     * brand_id : 1
     * front_camera : 1000
     * back_camera : 1000
     * battery_capacity : 1000
     * resolution_ratio : 1000
     * cpu_num : 42
     * card_type : 单卡
     * name : iphone8
     * img_id : 75
     * is_show : 1
     * is_contract : 1
     * create_time : 2018-07-23 17:15:28
     * update_time : 2018-07-26 13:57:37
     * delete_time : null
     * img_url : http://120.79.167.222/mobile_shop/public/upload/20180726/a0322388469bff996076b0548baa19ec.jpg
     * price : 8000.00
     * brand_name : 苹果
     */

    private PhoneEntity phone;
    /**
     * phone : {"id":1,"store_id":0,"brand_id":1,"front_camera":"1000","back_camera":"1000","battery_capacity":"1000","resolution_ratio":"1000","cpu_num":"42","card_type":"单卡","name":"iphone8","img_id":75,"is_show":1,"is_contract":1,"create_time":"2018-07-23 17:15:28","update_time":"2018-07-26 13:57:37","delete_time":null,"img_url":"http://120.79.167.222/mobile_shop/public/upload/20180726/a0322388469bff996076b0548baa19ec.jpg","price":"8000.00","brand_name":"苹果"}
     * memory : [{"name":"4G+64G","is_select":1,"color_list":[{"sku_id":1,"memory":"4G+64G","color":"红色","price":"8000.00"}]},{"name":"8G+64G","is_select":0,"color_list":[{"sku_id":2,"memory":"8G+64G","color":"银色","price":"9000.00"}]},{"name":"8G+128G","is_select":0,"color_list":[{"sku_id":3,"memory":"8G+128G","color":"灰色","price":"12000.00"}]}]
     * message : ok
     * status : 1
     */

    private String message;
    private int status;
    /**
     * name : 4G+64G
     * is_select : 1
     * color_list : [{"sku_id":1,"memory":"4G+64G","color":"红色","price":"8000.00"}]
     */

    private List<MemoryEntity> memory;

    public void setPhone(PhoneEntity phone) {
        this.phone = phone;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMemory(List<MemoryEntity> memory) {
        this.memory = memory;
    }

    public PhoneEntity getPhone() {
        return phone;
    }

    public String getMessage() {
        return message;
    }

    public int getStatus() {
        return status;
    }

    public List<MemoryEntity> getMemory() {
        return memory;
    }

    public static class PhoneEntity implements Serializable{
        private int id;
        private int store_id;
        private int brand_id;
        private String front_camera;
        private String back_camera;
        private String battery_capacity;
        private String resolution_ratio;
        private String cpu_num;
        private String card_type;
        private String name;
        private int img_id;
        private int is_show;
        private int is_contract;
        private String create_time;
        private String update_time;
        private Object delete_time;
        private String img_url;
        private String price;
        private String brand_name;

        public void setId(int id) {
            this.id = id;
        }

        public void setStore_id(int store_id) {
            this.store_id = store_id;
        }

        public void setBrand_id(int brand_id) {
            this.brand_id = brand_id;
        }

        public void setFront_camera(String front_camera) {
            this.front_camera = front_camera;
        }

        public void setBack_camera(String back_camera) {
            this.back_camera = back_camera;
        }

        public void setBattery_capacity(String battery_capacity) {
            this.battery_capacity = battery_capacity;
        }

        public void setResolution_ratio(String resolution_ratio) {
            this.resolution_ratio = resolution_ratio;
        }

        public void setCpu_num(String cpu_num) {
            this.cpu_num = cpu_num;
        }

        public void setCard_type(String card_type) {
            this.card_type = card_type;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setImg_id(int img_id) {
            this.img_id = img_id;
        }

        public void setIs_show(int is_show) {
            this.is_show = is_show;
        }

        public void setIs_contract(int is_contract) {
            this.is_contract = is_contract;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }

        public void setDelete_time(Object delete_time) {
            this.delete_time = delete_time;
        }

        public void setImg_url(String img_url) {
            this.img_url = img_url;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public void setBrand_name(String brand_name) {
            this.brand_name = brand_name;
        }

        public int getId() {
            return id;
        }

        public int getStore_id() {
            return store_id;
        }

        public int getBrand_id() {
            return brand_id;
        }

        public String getFront_camera() {
            return front_camera;
        }

        public String getBack_camera() {
            return back_camera;
        }

        public String getBattery_capacity() {
            return battery_capacity;
        }

        public String getResolution_ratio() {
            return resolution_ratio;
        }

        public String getCpu_num() {
            return cpu_num;
        }

        public String getCard_type() {
            return card_type;
        }

        public String getName() {
            return name;
        }

        public int getImg_id() {
            return img_id;
        }

        public int getIs_show() {
            return is_show;
        }

        public int getIs_contract() {
            return is_contract;
        }

        public String getCreate_time() {
            return create_time;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public Object getDelete_time() {
            return delete_time;
        }

        public String getImg_url() {
            return img_url;
        }

        public String getPrice() {
            return price;
        }

        public String getBrand_name() {
            return brand_name;
        }
    }

    public static class MemoryEntity implements Serializable{
        private String name;
        private int is_select;
        /**
         * sku_id : 1
         * memory : 4G+64G
         * color : 红色
         * price : 8000.00
         */

        private List<ColorListEntity> color_list;

        public void setName(String name) {
            this.name = name;
        }

        public void setIs_select(int is_select) {
            this.is_select = is_select;
        }

        public void setColor_list(List<ColorListEntity> color_list) {
            this.color_list = color_list;
        }

        public String getName() {
            return name;
        }

        public int getIs_select() {
            return is_select;
        }

        public List<ColorListEntity> getColor_list() {
            return color_list;
        }

        public static class ColorListEntity implements Serializable{
            private int sku_id;
            private String memory;
            private String color;
            private String price;

            public void setSku_id(int sku_id) {
                this.sku_id = sku_id;
            }

            public void setMemory(String memory) {
                this.memory = memory;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public int getSku_id() {
                return sku_id;
            }

            public String getMemory() {
                return memory;
            }

            public String getColor() {
                return color;
            }

            public String getPrice() {
                return price;
            }
        }
    }
}
